<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		function changeImage(){
			element=document.getElementById('myimage')
			if (element.src.match("bulbon")){
				element.src="images/eg_bulboff.gif";
		    }
		    else{
		    	element.src="images/eg_bulbon.gif";
		    }
		}
	</script>
	<img src="images/eg_bulboff.gif" id="myimage" onclick="changeImage()">
	<p>点击灯泡来点亮或熄灭这盏灯</p>
</body>
</html>